function [ eval ] = wekaTestLearner( wekaLearner, testVehicles , class)
%wekaTestLearner tests a pre-trined learner and returns the eval results
%   wekaLearner is a pre-trained weka classifier object
%   testVehicles is a list of vehicle objects which will be tested
%   class is 'angle' or 'type'
writeFeaturesToArff(testVehicles, 'selected', class, 'temp.arff')
wekaData=loadARFF('temp.arff');
eval=javaObject('weka.classifiers.Evaluation',wekaData);
for i=0:wekaData.numInstances-1
eval.evaluateModelOnce(wekaLearner, wekaData.instance(i));
end


